import request from '@/utils/request'

// 查询抽奖 答案列表
export function listLotteryanswer(query) {
  return request({
    url: '/lotteryanswer/lotteryanswer/list',
    method: 'get',
    params: query
  })
}

// 查询抽奖 答案详细
export function getLotteryanswer(id) {
  return request({
    url: '/lotteryanswer/lotteryanswer/' + id,
    method: 'get'
  })
}

// 新增抽奖 答案
export function addLotteryanswer(data) {
  return request({
    url: '/lotteryanswer/lotteryanswer',
    method: 'post',
    data: data
  })
}

// 修改抽奖 答案
export function updateLotteryanswer(data) {
  return request({
    url: '/lotteryanswer/lotteryanswer',
    method: 'put',
    data: data
  })
}

// 删除抽奖 答案
export function delLotteryanswer(id) {
  return request({
    url: '/lotteryanswer/lotteryanswer/' + id,
    method: 'delete'
  })
}

// 导出抽奖 答案
export function exportLotteryanswer(query) {
  return request({
    url: '/lotteryanswer/lotteryanswer/export',
    method: 'get',
    params: query
  })
}